<?php


namespace app\common\command;


use app\admin\model\Staff;
use app\common\CommandCron;
use app\http\Http;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\Db;
use think\facade\Env;
use think\facade\Log;

class UserList extends Command
{
    protected function configure()
    {
        $this->setName('user_list')
            ->setDescription('用户状态拉取');
    }

    protected function execute(Input $input, Output $output)
    {
        try {
            CommandCron::userList();
            $output->writeln("user_list success");
        } catch (\Exception $e) {
            $output->writeln("user_list false");
            Log::info("USER_LIST:状态更新失败~");
        }
    }
}